package com.example.b_308.myapplication.model.base;

import com.example.b_308.myapplication.model.base.BaseModel;

/**
 * Created by B-308 on 2017/11/20.
 */
public class BaseAssignment extends BaseModel {

    String id;//任务ID
    String title;//标题
    String address;//地址
    String content;//内容
    String company_id;//公司id
    String creator_id;//创建者
    String executor_id;//执行者
    String vistors;//拜访者
    String delay_explain;//申请延时
    String status;//任务状态，0表示已撤销，1表示未完成，2表示已完成，3表示已延期，4表示延期完成。
    String expect_time;//预期完成时间
    String end_time;//结束时间
    String create_time;//创建时间

    public String getId() {
        if (null == id)
            id = getStr("id");
        return id;
    }

    public String getTitle() {
        if (null == title)
            title = getStr("title");
        return title;
    }

    public String getAddress() {
        if (null == address)
            address = getStr("address");
        return address;
    }

    public String getContent() {
        if (null == content)
            content = getStr("content");
        return content;
    }

    public String getCompany_id() {
        if (null == company_id)
            company_id = getStr("company_id");
        return company_id;
    }

    public String getCreator_id() {
        if (null == creator_id)
            creator_id = getStr("creator_id");
        return creator_id;
    }

    public String getExecutor_id() {
        if (null == executor_id)
            executor_id = getStr("executor");
        return executor_id;
    }

    public String getVistors() {
        if (null == vistors)
            vistors = getStr("vistors");
        return vistors;
    }

    public String getDelay_explain() {
        if (null == delay_explain)
            delay_explain = getStr("delay_explain");
        return delay_explain;
    }

    public String getStatus() {
        if (null == status)
            status = getStr("status");
        return status;
    }

    public String getExpect_time() {
        if (null == expect_time)
            expect_time = getStr("expect_time");
        return expect_time;
    }

    public String getEnd_time() {
        if (null == end_time)
            end_time = getStr("end_time");
        return end_time;
    }

    public String getCreate_time() {
        if (null == create_time)
            create_time = getStr("create_time");
        return create_time;
    }

    public void setId(String id) {
        put("id", id);
        this.id = id;
    }

    public void setTitle(String title) {
        put("title", title);
        this.title = title;
    }

    public void setAddress(String address) {
        put("address", address);
        this.address = address;
    }

    public void setContent(String content) {
        put("content", content);
        this.content = content;
    }

    public void setCompany_id(String company_id) {
        put("company_id", company_id);
        this.company_id = company_id;
    }

    public void setCreator_id(String creator_id) {
        put("creator_id", creator_id);
        this.creator_id = creator_id;
    }

    public void setExecutor(String executor) {
        put("executor", executor);
        this.executor_id = executor;
    }

    public void setVistors(String vistors) {
        put("vistors", vistors);
        this.vistors = vistors;
    }

    public void setDelay_explain(String delay_explain) {
        put("delay_explain", delay_explain);
        this.delay_explain = delay_explain;
    }

    public void setStatus(String status) {
        put("status", status);
        this.status = status;
    }

    public void setExpect_time(String expect_time) {
        put("expect_time", expect_time);
        this.expect_time = expect_time;
    }

    public void setEnd_time(String end_time) {
        put("end_time", end_time);
        this.end_time = end_time;
    }

    public void setCreate_time(String create_time) {
        put("create_time", create_time);
        this.create_time = create_time;
    }

}
